package cn.gailvlun.gll.chatlib.bean;

import java.util.Date;
import java.util.UUID;

import cn.gailvlun.gll.chatlib.NotificationType;
import cn.gailvlun.gll.net.apartment.room.Room;
import cn.gailvlun.gll.net.base.Profile;
import cn.gailvlun.gll.net.emotion.Comment;
import cn.gailvlun.gll.net.emotion.Emotion;
import cn.gailvlun.gll.net.hotel.InsomniaHotel;
import cn.gailvlun.gll.net.wish.MakeWish;
import io.realm.RealmObject;
import io.realm.annotations.PrimaryKey;



public class SystemNotification extends RealmObject {
    @PrimaryKey
    private String id = UUID.randomUUID().toString();
    private String type;
    private Emotion emotion;
    private Comment comment;
    private InsomniaHotel hotelInsomnia;
    private MakeWish wish;
    private Room room;
    private boolean unread = true;
    private Date created;
    private Profile from;
    private String text;

    public boolean isUnread() {
        return unread;
    }

    public void setUnread(boolean unread) {
        this.unread = unread;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public NotificationType getType() {
        return NotificationType.valueOf(type);
    }

    public void setType(NotificationType type) {
        this.type = type.name();
    }

    public Emotion getEmotion() {
        return emotion;
    }

    public void setEmotion(Emotion emotion) {
        this.emotion = emotion;
    }

    public Comment getComment() {
        return comment;
    }

    public void setComment(Comment comment) {
        this.comment = comment;
    }

    public InsomniaHotel getHotelInsomnia() {
        return hotelInsomnia;
    }

    public void setHotelInsomnia(InsomniaHotel hotelInsomnia) {
        this.hotelInsomnia = hotelInsomnia;
    }

    public MakeWish getWish() {
        return wish;
    }

    public void setWish(MakeWish wish) {
        this.wish = wish;
    }

    public Room getRoom() {
        return room;
    }

    public void setRoom(Room room) {
        this.room = room;
    }

    public Profile getFrom() {
        return from;
    }

    public void setFrom(Profile from) {
        this.from = from;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }
}
